package com.rxst.msg.dto.update;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备授权表
 *
 * @author rxst
 * @email rxst@gmail.com
 * @date 2021-08-19 11:47:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("msgx_equipment")
public class MsgxEquipmentUpdateDto implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId
    @ApiModelProperty(value = "主键", notes = "主键")
    private Long id;
    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id", notes = "设备id")
    private String equipmentId;
    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称", example = "0A-2B", notes = "设备名称")
    private String equipmentName;
    /**
     * 设备mac地址
     */
    @ApiModelProperty(value = "设备mac地址", notes = "设备mac地址")
    private String equipmentMac;
    /**
     * 授权开始时间
     */
    @ApiModelProperty(value = "授权开始时间", example = "2021-08-19", notes = "授权开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date equipmentAuthStartTime;
    /**
     * 授权结束时间
     */
    @ApiModelProperty(value = "授权结束时间", example = "2021-08-19", notes = "授权结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date equipmentAuthEndTime;
    /**
     * 状态 0 启用 1 禁用
     */
    @ApiModelProperty(value = "状态 0 启用 1 禁用 ", notes = "状态 0 启用 1 禁用 ")
    private Integer status;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2021-08-19 00:00:00", notes = "创建时间" ,dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", example = "2021-08-19 00:00:00", notes = "修改时间",dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 是否删除 0 未删除  1 删除
     */
    @ApiModelProperty(value = "是否删除 0 未删除  1 删除", notes = "是否删除 0 未删除  1 删除")
    private Integer isDelete;
}
